{% extends "echo_base.html" %}
{% block globalconteiner %}
{% block formcontent %}
{% if form.is_multipart %}
    <form enctype="multipart/form-data" method="post" action=".">
{% else %}
    <form method="post" action=".">
{% endif %}
        <fieldset>
        <h2>{% block formtitle %}Custom form{% endblock %}</h2>
        {% for field in form %}
                <div class="form_row">
                {{ field.errors }}
                    {{ field.label_tag }}
                    {{ field }}<br/>
                 </div>
        {% endfor %}
        </fieldset>
        <div>
        {% block editformimage  %}{% endblock %} 
        </div>
        <div>
            <input class="submit_form" type="submit" name="_save" value="Сохранить"/>&nbsp;&nbsp;&nbsp;&nbsp;
            <input class="cancel_form" type="button" name="_cancel" value="Вернутся без изменений" OnClick="javascript:location.href='{% url result item.id %}'"/>
        </div>
</form>
{% endblock %}    
{% endblock %}